package com.fw4j.configure.entity;

public class PoolConfigure {

	private String database="default";
	private String url;
	private String driver;
	private String user;
	private String pwd="";
	private long outOfData = -1;
	private boolean pool = false;
	private long monitorTime = 60000;
	
	public PoolConfigure(){}
	public PoolConfigure(String database, String url, String driver,
			String user, String pwd, long outOfData) {
		this.database = database;
		this.url = url;
		this.driver = driver;
		this.user = user;
		this.pwd = pwd;
		this.outOfData = outOfData;
	}
	
	public String getDatabase() {
		return database;
	}
	public void setDatabase(String database) {
		this.database = database;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getDriver() {
		return driver;
	}
	public void setDriver(String driver) {
		this.driver = driver;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public long getOutOfData() {
		return outOfData;
	}
	public void setOutOfData(long outOfData) {
		this.outOfData = outOfData;
	}
	public boolean isPool() {
		return pool;
	}
	public void setPool(boolean pool) {
		this.pool = pool;
	}
	
	public long getMonitorTime() {
		return monitorTime;
	}
	public void setMonitorTime(long monitorTime) {
		this.monitorTime = monitorTime;
	}
	@Override
	public String toString() {
		return "PoolConfigure [database=" + database + ", url=" + url
				+ ", driver=" + driver + ", user=" + user + ", pwd=" + pwd
				+ ", outOfData=" + outOfData + ", pool=" + pool
				+ ", monitorTime=" + monitorTime + "]";
	}

}
